kest_
(usa Fedora)
Enviado em 24/02/2009 - 20:19h
Sistema operacional: fc10
PHP version: php-5.2.8
MySQL version: MySQL-server-5.1.30-0.glibc23.i386
Glibc version: glibc-2.9-3.i686
Make version: make-3.81-14.fc10.i386
Bison version: bison-2.3-5.fc9.i386
Flex version: flex-2.5.35-2.fc10.i386
GD Version: gd-2.0.35-6.fc10.i386 / gd-devel-2.0.35-6.fc10.i386
http://img10.imageshack.us/img10/7236/lsmysql.png
./configure \
--disable- cgi \
--enable-cli \
--prefix=/usr/local/php-gtk2 \
--with-mysql \
--with-mysqli=/usr/bin/mysql_config \
--with-pdo-mysql \
--with-libxml-dir=/usr/lib \
--with-pdo-sqlite \
--with-gd \
--with-zlib \
--enable-dbase \
--enable- soap \
--enable-calendar \
--enable-sockets \
--enable-ftp \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-xpm-dir=/usr
http://img503.imageshack.us/img503/5519/configure.png
Nunca mechi com bibliotecas GD, o gd que conheçe é gateway default.
make
http://img5.imageshack.us/img5/4356/make.png
não sei o que pode estar ocorrendo, mas o problema é que ele acusa erro na link do mysql, não consigo entender.
Tentei
./configure --prefix=/usr --with-mysql --with-mysqli=/usr/bin/mysql_config --disable-cgi --enable-cli --with-gd --with-zlib --with-calendar --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr && make && makeinstall
E está dando isso
Code:
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed.
Rodei o ./configure anterior.
Acho que é no fim que tem os erros né, então eis o fim do config.log:
configure:59985: checking for mysql_close in -lmysqlclient
configure:60004: gcc -o conftest -I/usr/include -g -O2 -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib conftest.c -lmysqlclient -lX11 -lXpm -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/lib/mysql/libmysqlclient.so: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 59993 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_close();
int main() {
mysql_close()
; return 0; }
configure:60227: checking for mysql_error in -lmysqlclient
configure:60246: gcc -o conftest -I/usr/include -g -O2 -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lX11 -lXpm -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/lib/mysql/libmysqlclient.so: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 60235 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();
int main() {
mysql_error()
; return 0; }